
<?php if(!empty($_SESSION['flash_message']) ) {?>
<div id="message" class="message_tip">
<?php echo $_SESSION['flash_message'];?>
</div>
<script style="text/javascript">
setTimeout("$('#message').fadeOut()", 2000);
</script>

<?php 
$_SESSION['flash_message'] = '';
}?>